package com.sofa.shark.file.remotefile;

import com.sofa.shark.file.entity.FileInfoBO;
import com.sofa.shark.file.entity.FileServerResponse;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author tonyp
 * @date 2019/11/1
 * @description 远程调用文件服务接口
 */
public interface RemoteFileServerSevice {

    @RequestLine("POST /{group}/upload")
    @Headers("Content-Type: multipart/form-data")
    FileServerResponse<FileInfoBO> upload(@Param("group") String group, @RequestBody Map<String, Object> maps);
}
